package com.softline.documentsmall.ret;


/**
 * 返回结果错误枚举类
 */
public enum ReturnErrorEnum {

    SYSTEM_ERROR(500, "System error"),
    AUTHENTICATION_ERROR(401, "Authentication error"),
    AUTHENTICATION_TIMEOUT(402, "Authentication timeout"),
    FORBIDDEN(403, "No authority"),
    NOT_FOUND(404,"Not found");

    private Integer code;

    private String msg;

    ReturnErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
